using System;
using UnityEngine.UI;

namespace GameCore
{
    public class UI_Loading : UIBase<UI_Loading>, ILoadingForm
    {
        public Text title;
        public Image progress;

        public void ShowUI(string title, float progress, Delegate onBack = null)
        {
            ShowUI(onBack);
            this.title.text = title;
            this.progress.fillAmount = progress;
        }
    }
}